{template 'header'}
<!--主体部分-->
<div class="layout960 mt10">
	<div class="main-head-blue fn-clear">
		<h2 class="fn-left">汽车批发</h2>
		{if !$_username}<p class="tips fn-left">您尚未登录，请您<a href="{url('member/login')}" title="登录">登录</a>后再参加报名</p>{/if}
		<a href="{url('auto/index')}">选择购买车型</a>
	</div>
	<div class="main-body border fn-clear">
		<div class="w628 fn-left">
			<div class="wholesale-intro fn-clear">
				<img class="fn-left" src="{IMG_URL}auto/sale.png" width="300" height="200" alt="汽车批发">
				<div class="detail fn-right">
					<h3>讯都车网携手全国加盟汽车销售公司为你提供本地区最低价汽车批发！<br>一辆也批发！</h3>
					<p>请您了解想购买的汽车车型在本地区4S店及各类团购活动中的最低报价，填写报名资料，享受只有企业用户才能获得的汽车批发价格！</p>
				</div>
			</div>
			<!--参与须知 start-->
			<div class="bd-bluetop wholesale-guide">
				<div class="auto-rec-hd fn-clear">
					<h3>报名须知</h3>
				</div>
				<div class="content">
					{$MOD[sale_rule]}
				</div>
			</div>
			<!--参与须知 end-->
			<form id="wholesale-form"  action="{url('auto/sale')}" method="post" >
				<div class="panel-grayhd wholesale-form">
					<div class="hd fn-clear">
						<h3>请输入或<a href="{url('auto/index')}" title="选择购买车型">选择</a>购买车型</h3>
					</div>
					<table class="content">
						<tr>
							<th width="100">品牌：</th>
							<td><input type="text" size="30" title="请填写品牌"  name="post[brand_name]" value="{$brand_name}"/></td>
						</tr>
						<tr>
							<th>生产厂家：</th>
							<td><input type="text" size="30" title="请填写生产厂家" name="post[make_name]" value="{$make_name}"/></td>
						</tr>
						<tr>
							<th>车系：</th>
							<td><input type="text" size="30" title="请填写车系" name="post[car_name]"  value="{$car_name}"/> 请准确填写，如：大众捷达</td>
						</tr>
						<tr>
							<th>车款：</th>
							<td><input type="text" size="30" title="请填写车款" name="post[model_name]" value="{$model_name}"/> 请准确填写，如：2013款1.4手动时尚款</td>
						</tr>
						<tr>
							<th>购车颜色：</th>
							<td id="wholesale-color">
								<input type="text" size="15" title="请填写购车颜色" name="post[color]"/>
								{if $color}
								<select >
									<option >选择车型颜色</option>
									{loop $color $v}
									<option >{$v}</option>
									{/loop}
								</select>
								{/if}
							</td>
						</tr>
					</table>
				</div>
				<div class="panel-grayhd wholesale-form">
					<div class="hd fn-clear">
						<h3>请输入您的基本资料</h3>
					</div>
					<table class="content">
						<tr>
							<th width="100">您的姓名：</th>
							<td width="500"><input type="text" name="post[truename]" size="30" title="请填写您的姓名"/> 请务必填写真实姓名</td>
						</tr>
						<tr>
							<th>您的手机：</th>
							<td><input type="text" size="30" name="post[mobile]"  id="mobile" title="请填写您的联系方式"/> 请务必正确填写手机号码</td>
						</tr>
						<tr>
							<th>您的地址：</th>
							<td><input type="text" size="30" name="post[address]" title="请填写您的联系地址"/> 请填写您的大概位置，方便我们为您服务</td>
						</tr>
						<tr>
							<th>已知优惠：</th>
							<td><input type="text" size="30" name="post[discount]" title="请填写已知优惠"/> 请填写您已知车款最高优惠（在厂家指导价基础上）</td>
						</tr>
						<tr>
							<th>报价单位：</th>
							<td><input type="text" size="30" name="post[sale_company]" title="请填写报价单位"/> 请填写写给你报价的4s店名称或团购提供单位名称</td>
						</tr>
						<tr>
							<th>其他说明：</th>
							<td>
								<textarea  name="post[ps]" id="other-intro"></textarea>
							</td>
						</tr>
					</table>
					<p class="wholesale-tips">持有讯都车主金卡，您可获得汽车批发价优惠购买再返现500元！</p>
                    <p class="t-center">
                        <button id="wholesale-sbt" class="main-log-btn" type="submit" name="submit">我要报名</button>
                        <a class="main-log-btn" href="{url('owncard/index')}" title="讯都车主金卡" >讯都车主金卡</a>
                    </p>
				</div>
			</form>
		</div>
		<div class="w300 fn-right">
			<iframe src="{SITE_URL}extend/fragment.php?modules=sale&psize=10"  scrolling="no" frameborder="0" height="303"></iframe>
			<iframe src="{SITE_URL}extend/fragment.php?modules=quote&psize=10&city_order={$city_order}"  scrolling="no" frameborder="0" height="303"></iframe>
			<iframe src="{SITE_URL}extend/fragment.php?modules=BBS"  scrolling="no" frameborder="0" height='303'></iframe>
		</div>
	</div>
</div>
<script>
	seajs.use(['$','lm-util','easyui','easyui-css','easyui-icon-css'],function($,util){
        util.monitorNull("#other-intro");
        $("#wholesale-color select").change(function(){
            $("#wholesale-color input").val($(this).val());
        });
		$("#wholesale-sbt").click(function(){
			$('#wholesale-form input').each(function(){
				var title = $(this).attr("title");
				$(this).validatebox({
					required:true,
					missingMessage:title
				});
			});
			$('#mobile').validatebox({
				required:true,
				validType:'mobile["value"]',
				missingMessage:'请输入您的手机号码'
			});
			<!--{if $_username}-->
			$('#wholesale-form').on('submit', function(){
				return $("#wholesale-form").form('validate');
			});
			<!--{/if}-->
		});
	})
</script>
<!--主体部分end-->
{template 'footer'}
